/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.partaljevic.gambling.beans;

import com.partaljevic.tapestry.gambling.service.ResultService;
import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author Nemanja
 */
public class ResultServiceBean implements ResultService{

    List<Result> listOfResult;

    public ResultServiceBean() {
        listOfResult = new LinkedList<Result>();
    }


    @Override
    public Result save(Result result) {
       listOfResult.add(result);
       return result;
    }

    @Override
    public List<Result> retreive() {
        return listOfResult;
    }

    @Override
    public Result retreive(Serializable id) {
        return null;
    }


}
